package cn.drew.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    //当前页
    private Integer currentPage;

    //每页条数
    private Integer pageSize;

    //启始条数
    private Integer getStart(){
        return (currentPage-1)*pageSize;
    }

}
